<template>
  <div>
    <!-- 一定要有路由出口 -->
    <router-view></router-view>
    <van-tabbar v-model="active" route placeholder>
      <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/find" icon="search" dot>搜索</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "app",
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style>
</style>
